package com.lznb.cloud.entity;

import com.lznb.cloud.utils.IsQuery;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 
 * @author mzy
 * @email 1992lcg@163.com
 * @date ${datetime}
 */
@Entity
@Table(name="NEWS_COMMENT")
public class NewsComment implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//评论ID
		@IsQuery
		    @Id
    private String commentId;
	
	//发布评论者ID
	@IsQuery
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	private String userId;
	
	//父评论ID
		@IsQuery
		    private String commentParentId;
	
	//评论内容
		    private String commentContent;
	
	//评论状态
		@IsQuery
		    private Integer commentState;
	
	//新闻ID
		@IsQuery
		    private String newsId;
	
	//创建时间
		    private Date createTime;
	

	/**
	 * 设置：评论ID
	 */
	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}
	/**
	 * 获取：评论ID
	 */
	public String getCommentId() {
		return commentId;
	}
	/**
	 * 设置：发布评论者ID
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}
	/**
	 * 获取：发布评论者ID
	 */
	public String getUserId() {
		return userId;
	}
	/**
	 * 设置：父评论ID
	 */
	public void setCommentParentId(String commentParentId) {
		this.commentParentId = commentParentId;
	}
	/**
	 * 获取：父评论ID
	 */
	public String getCommentParentId() {
		return commentParentId;
	}
	/**
	 * 设置：评论内容
	 */
	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}
	/**
	 * 获取：评论内容
	 */
	public String getCommentContent() {
		return commentContent;
	}
	/**
	 * 设置：评论状态
	 */
	public void setCommentState(Integer commentState) {
		this.commentState = commentState;
	}
	/**
	 * 获取：评论状态
	 */
	public Integer getCommentState() {
		return commentState;
	}
	/**
	 * 设置：新闻ID
	 */
	public void setNewsId(String newsId) {
		this.newsId = newsId;
	}
	/**
	 * 获取：新闻ID
	 */
	public String getNewsId() {
		return newsId;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
}
